﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 库区
    /// </summary>
    [Table("TAreas")]
    
  [SugarTable(tableName: "TAreas")]
    public partial class TArea
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 库区编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 库区名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 是否物理库区
        /// </summary>
        public bool? IsRealArea { get; set; }
        /// <summary>
        /// 库房Id
        /// </summary>
        public int WhId { get; set; }
        /// <summary>
        /// 库房编码
        /// </summary>
        public string WhCode { get; set; }
        /// <summary>
        /// 库房名称
        /// </summary>
        public string WhName { get; set; }
        /// <summary>
        /// 状态：0-禁用；1-正常；
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 类型Id
        /// </summary>
        public int TypeId { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string TypeName { get; set; }
        /// <summary>
        /// 对应ERP系统的库区编码
        /// </summary>
        public string Erpcode { get; set; }
        /// <summary>
        /// 库区面积
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? BuiltArea { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int DisplayOrder { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 修改用户Id
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifyUserName { get; set; }
        public int? ShelfCount { get; set; }
        //[NotMapped]
        ///// <summary>
        ///// 当前登录人Id
        ///// </summary>
        //public int NowUserId { get; set; }

        ///// <summary>
        ///// 当前登陆人名称
        ///// </summary>
        //public string NowUserRealName { get; set; }
    }
}
